package com.lbw.decorator;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/6/4 18:59
 */
public class CoffeeBar {
    public static void main(String[] args) {
        // 1.点一份longblack
        Drink drink = new LongBlack();

        System.out.println("费用1:" + drink.getPrice());
        System.out.println(drink.getDes());

        drink = new Milk(drink);

        System.out.println("费用2:" + drink.getPrice());
        System.out.println(drink.getDes());

        drink = new Chocolate(drink);

        System.out.println(drink.getDes());
        System.out.println(drink.getPrice());
    }
}
